package com.soft.collateral.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 押品监测表
 * </p>
 *
 * @author liubin
 * @since 2025-07-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("monitoring")
@ApiModel(value="Monitoring对象", description="押品监测表")
public class Monitoring implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "监测编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "押品编号")
    @TableField("collateral_id")
    private Integer collateralId;

    @ApiModelProperty(value = "当前状态")
    @TableField("current_status")
    private Integer currentStatus;

    @ApiModelProperty(value = "变更前状态")
    @TableField("previous_status")
    private Integer previousStatus;

    @ApiModelProperty(value = "状态变化时间")
    @TableField("change_time1")
    private LocalDateTime changeTime1;

    @ApiModelProperty(value = "当前估值")
    @TableField("current_valuation")
    private BigDecimal currentValuation;

    @ApiModelProperty(value = "变更前估值")
    @TableField("previous_valuation")
    private BigDecimal previousValuation;

    @ApiModelProperty(value = "估值变更时间")
    @TableField("change_time2")
    private LocalDateTime changeTime2;

    @ApiModelProperty(value = "是否异常")
    @TableField("is_abnormal")
    private Boolean isAbnormal;

    @ApiModelProperty(value = "异常原因")
    @TableField("abnormal_reason")
    private String abnormalReason;

    @ApiModelProperty(value = "是否解决")
    @TableField("processed")
    private Boolean processed;

    @ApiModelProperty(value = "创建时间")
    @TableField("created_at")
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "更新时间")
    @TableField("updated_at")
    private LocalDateTime updatedAt;


}
